import request from '@/utils/request'
import { jdyadmin } from '@/settings'

/**
 * 重点项目详情接口
 * @param {参数} data 
 */
// 获取重点项目详情
export function getDetail(data){
    return request({
        url: `${jdyadmin}/keyPointProject/seletekeyPointProject`,
        method: 'post',
        data
    })
}

// 新增重点项目详情
export function addDetail(data){
    return request({
        url: `${jdyadmin}/keyPointProject/addkeyPointProject`,
        method: 'post',
        data
    })
}

// 编辑重点项目详情
export function updateDetail(data){
    return request({
        url: `${jdyadmin}/keyPointProject/updatekeyPointProject`,
        method: 'post',
        data
    })
}

// 删除重点项目详情
export function deleteDetail(id){
    return request({
        url: `${jdyadmin}/keyPointProject/deletekeyPointProject/${id}`,
        method: 'delete'
    })
}

/**
 * 重点项目落实信息
 * @param {参数} data 
 */
// 获取重点项目落实信息
export function getImplement(data){
    return request({
        url: `${jdyadmin}/keyPointPracticable/seletekeyPointPracticableService`,
        method: 'post',
        data
    })
}

// 新增重点项目落实信息
export function addImplement(data){
    return request({
        url: `${jdyadmin}/keyPointPracticable/addkeyPointPracticableService`,
        method: 'post',
        data
    })
}

// 编辑重点项目落实信息
export function updateImplement(data){
    return request({
        url: `${jdyadmin}/keyPointPracticable/updatekeyPointPracticableService`,
        method: 'post',
        data
    })
}

// 删除重点项目落实信息
export function deleteImplement(id){
    return request({
        url: `${jdyadmin}/keyPointPracticable/deletekeyPointPracticableService/${id}`,
        method: 'delete'
    })
}

/**
 * 重点项目进度完成情况
 * @param {参数} data 
 */
// 获取重点项目进度完成情况
export function getProgress(data){
    return request({
        url: `${jdyadmin}/keyPointSchedule/seleteKeyPointSchedule`,
        method: 'post',
        data
    })
}

// 新增重点项目进度完成情况
export function addProgress(data){
    return request({
        url: `${jdyadmin}/keyPointSchedule/addKeyPointSchedule`,
        method: 'post',
        data
    })
}

// 编辑重点项目进度完成情况
export function updateProgress(data){
    return request({
        url: `${jdyadmin}/keyPointSchedule/updateKeyPointSchedule`,
        method: 'post',
        data
    })
}

// 删除重点项目进度完成情况
export function deleteProgress(id){
    return request({
        url: `${jdyadmin}/keyPointSchedule/deleteKeyPointSchedule/${id}`,
        method: 'delete'
    })
}

// 部长审核接口
// 新增
export function addShenHe(data){
    return request({
        url: `${jdyadmin}/keyPointEvaluate/addKeyPointEvaluate`,
        method: 'post',
        data
    })
}

// 查询
export function selectShenHe(data){
    return request({
        url: `${jdyadmin}/keyPointEvaluate/seletekeyPointPracticableService`,
        method: 'post',
        data
    })
}